<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="layouts::header" >
</head>

<body>
<nav th:replace="layouts::navbar"></nav>
<div class="container">
    <h3>学生列表</h3>
    <hr>

    <a th:href="@{/student/new}" class="btn btn-primary btn-sm mb-3">新建学生</a>
    <br>
    <div class="">
    <table class="table table-bordered table-striped bx" border="1">
        <thead class="thead-dark">
        <tr>
            <th>学号</th>
            <th>姓名</th>
            <th>性别</th>
            <th>班级</th>
        </tr>

        </thead>
        <tbody>
        <tr th:each="astudent: ${students}">
            <td th:text="${astudent.studentNum}"></td>
            <td th:text="${astudent.name}"></td>
            <td th:text="${astudent.gender}"></td>
            <td th:text="${astudent.class1Name}"></td>
       </tr>
        </tbody>
    </table>
    </div>
<!--    <div class="col-md-6 rightfloat">-->
<!--        <canvas id="myChart" height="50" width="50"></canvas>-->
<!--    </div>-->
<!--    <script type="text/javascript" th:src="@{js/student.js}"></script>-->
</div>




</body>
</html>